package com.周阳.中介者模式.智能家居案例;

/**
 * 具体同事类：窗帘
 */
public class Curtains extends Colleague {

    public Curtains(Mediator mediator, String name) {
        super(mediator, name);
        mediator.Register(name, this);
    }

    @Override
    public void SendMessage(int stateChange) {
            this.GetMediator().GetMessage(stateChange, this.name);
    }

    //打开窗帘行为
    public void UpCurtains() {
            System.out.println("I am holding Up Curtains!");
    }
}
